<?php

namespace api\web\controller;

use api\web\model\IndexModel;
use cmf\controller\RestBaseController;

class IndexController extends RestBaseController
{
    public function index() {
        $list = IndexModel::with('child')
            ->select();
        $this->success('导航菜单',$list);
    }
}